<%@ page language="java" contentType="text/html; charset=utf8"
    pageEncoding="utf8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8">
<title>可上班医生表</title>
<link rel="stylesheet" href="/hospital-system/bootstrap-5.3.0/css/bootstrap.css">
</head>
<body style="background: url('../image/hospital1.jpg'); 
background-size: 100%; background-attachment: fixed;">
<nav class="navbar navbar-dark bg-dark ">
  <span class="navbar-brand mb-auto h1 mr-auto my-10  navbar-nav-scroll">欢迎使用医院就诊系统</span>
</nav>

	<div class="container mt-2">
			<form action="/hospital-system/mangerInsertServlet" 
			method="post" class="mt-3">
		<table class="table table-success table-striped">		
		  <thead class="text-center">
		 	<tr>
		 		<td>医生编号</td>
			 	<td>医生姓名</td>
			 	<td>科室编号</td>
			 	<td>医生电话</td>
			 	<td>医生学历</td>
			 	<td>科室姓名</td>
			 	<td>医生经历</td>
			 	<td colspan="2">操作</td>
		 	</tr>
		  </thead>
		  <tbody class="text-center">
		  <!-- 利用核心标签库里的forEach标签来实现集合的遍历 -->
		  	<c:forEach items="${doctorlist}" var="doc" >
		  		<td>${doc.did}</td>
			 	<td>${doc.dname}</td>
			 	<td>${doc.cid}</td>
			 	<td>${doc.dnumber}</td>
			 	<td>${doc.deduct}</td>
			 	<td>${doc.cname}</td>
			 	<td>${doc.dexpre}</td>
			 <!-- 从自己的页面获取一些数值，以便于直接在下一个页面展示 -->
				<td><a href="jsp/mangerreservable.jsp" >录入</a></td>
		  	</tr>
		  	</c:forEach>
		  </tbody>	 
		</table>
		<div class="mb-3 row">
			  <label  class="col-sm-2 form-label"></label>		  
			    <div class="col-sm-3">
			     <input type="button" onclick="window.location.href='jsp/system.jsp';" 
		class="form-control btn btn-primary" value="返回">
			    </div>
			  </div>		
		
	</div>
	</body>
</html>